<{include file="public/header.html"}> 
	<!--中间内容-->
	<div class="w1180-con mt20">
		<div class="duobao-detail">
			<div class="breadcrumb mb20">
                            <a href="<{eval url('lottery')}>">全部商品&nbsp;＞</a>&nbsp;<i><{$item['title']}></i>
			</div>
			<div class="product w880 fl">
				<div class="head">
					<div class="img fl">
						<img src="<{$item['thumb']}>" alt="<{$item['title']}>" />
					</div>
					<div class="con fr">
						<dl>
							<dt class="title">
								<h4><{$item['title']}></h4>
								<p class="tips mt10">本商品由第三方商家提供并发货，颜色随机，含保险，不含购置税及上牌费。参与前请仔细阅读活动说明！</p>
							</dt>
							<dd class="qishu mt10">
                                                           【第<{$item['qishu']}>期】
							</dd>
							<dd class="zongrenshu mt10">
								总需人次：<{$item['zongrenshu']}>
								<p class="fr">每满总需人次，即抽取1人获得该商品</p>
							</dd>
							<dd class="duobao-progress mt10">
								<div class="loadbox">
									<dl class="big-barbox">
										<dd class="barline">
											<div data-current="<{$item['canyurenshu']}>" data-total="<{$item['zongrenshu']}>" style="width:0px;" class="charts"></div>
										</dd>
									</dl>
									<p class="fl num mt5">已参与人次：<{$item['canyurenshu']}></p>
									<p class="fr num mt5">剩余人次：<{$item['shenyurenshu']}></p>
								</div>
								<div class="clear"></div>
							</dd>
							<dd class="participate jion-times mt20">
								参与&nbsp;
								<span class="times">
									<a href="javascript:void(0);" id="number-down" onselectstart="return false" class="time-action" data-min-number="1">-</a>
	                                <input type="text" id="shop-number" class="numbers" maxlength="10" value="1" name="lottory_num" onkeyup="value=value.replace(/\D/g,'');value = (value == '' ? 1 : value) ;" data-max-number="<{$item['zongrenshu']}>" data-remain-number="<{$item['shenyurenshu']}>"/>
	                                <a href="javascript:void(0);" id="number-up" onselectstart="return false" class="time-action ml-5">+</a>
								</span>
								&nbsp;人次
							</dd>
							<dd class="probability mt10">
								<em class="ml35">获宝概率：</em><i class="chance-per">0.05%</i><em class="ml10">参与人次越多，获宝概率越大！</em>
							</dd>
							<dd class="mt20">
								<a href="javascript:void(0);" class="btn Det-Shopbtn">立即参与</a>
								<a href="<{eval url('lottery/instructions')}>" class='rules' target="_blank"><b class="icon-index"></b>心愿规则</a>
							</dd>
						</dl>
					</div>
					<div class="clear"></div>
				</div>
				<script type="text/javascript">
                                    var shopinfo={'shopid':<{$item['id']}>,'money':<{$item['yunjiage']}>,'shenyu':<{$item['shenyurenshu']}>};
                                    $(function(){
                                        var t = 1/parseInt($("#shop-number").attr("data-max-number")),b=baifenshua(t,2);
                                        $(".chance-per").text(b);
                                    });
                                </script>
				<div class="content mt20">
					<div class="tab-list">
	                    <ul>
	                        <li class="active">奖品详情</li>
                                <li class="canyu">参与小伙伴</li>
	                        <li>往期中奖</li>
                	    </ul>
					</div>
					<div class="tab-con mt20">
						<div class="img-detail list" style="display: block;">
							<{$item['content']}>
						</div>
						<div class="list participateIn" id="buy-list-box">
                                                    <{if $buyers}>
							<table>
								<tr>
									<th>参与伙伴</th><th>参与时间</th><th>参与人次</th><th>IP</th>
								</tr>
                                                                <tbody class="list-box">
                                                                <{foreach from=$buyers item=val}>
								<tr>
                                                                    <td><a href="<{$val['space_url']}>" target="_blank"><img src="<{$val['head_img']}>" /><em><{$val['nickname']}></em></a></td>
									<td class="time"><{$val['time']}></td>
									<td>
										<span class="num"><{$val['gonumber']}></span>
										<label class="check check-code" data-rid="<{$val['record_id']}>">查看号码</label>
										<!--查看夺宝号码 弹窗-->
									</td>
									<td>(<{$val['ip']}>)</td>
								</tr>
                                                                <{/foreach}>
                                                                </tbody>
							</table>
                                                    <{else}>
                                                    <div class="tip-null"></div>
                                                    <{/if}>
                                                    <{if count($buyers) == 10}>
							<div class="load-more mt20 tc" id="buy-list-pagenation">
                                                            <a href="javascript:void(0);" class="buy-list" data-sid="<{$item['goods_id']}>">点击加载更多</a>
							</div>
                                                    <{/if}>
						</div>
						<div class="list participateIn">
                                                    <{if $olds}>
							<table>
                                                            <tr>
                                                                <th>幸运伙伴</th><th>参与时间</th><th>参与次数</th><th>期数</th><th>幸运号码</th><th></th>
                                                            </tr>
                                                            <tbody class="list-box">
                                                            <{foreach from=$olds item=val}>
                                                            <tr>
                                                                <td><a href="<{$val['space_url']}>" target="_blank"><img src="<{$val['head_img']}>" /><em><{$val['nickname']}></em></a></td>
                                                                <td class="time"><{$val['time']}></td>
                                                                <td><span><{$val['num']}></span></td>
                                                                <td>第<{$val['qishu']}>期</td>
                                                                <td><{$val['q_user_code']}></td>
                                                                <td><a href="<{$val['lottery_url']}>" target="_blank">查看详情</a></td>
                                                            </tr>
                                                            <{/foreach}>
                                                            </tbody>
							</table>
                                                     <{else}>
                                                        <div class="tip-null"></div>
                                                    <{/if}>
                                                    <{if count($olds) == 10}>
                                                    <div class="load-more mt20 tc" id="old-period-pagenation">
                                                        <a href="javascript:void(0);" class="old-period" data-sid="<{$item['_sid']}>">点击加载更多</a>
                                                    </div>
                                                    <{/if}>
						</div>
					</div>
					<script type="text/javascript">
						$(function(){
							$(".check-num").click(function(e){
								e.stopPropagation();
							});
							
						})
					</script>
				</div>
			</div>
			<div class="duobao-right fr">
				<{include file="lottery/public_right.html"}>
			</div>
			<div class="clear"></div>
		</div>
	</div>
	<{include file="lottery/code_pop.html"}>
	<script type="text/javascript" src="<{$style_dir}>/js/duobao.widget.js"></script>
	<script type="text/javascript" src="<{$style_dir}>/js/jquery.cookie.js"></script>
<!--底部-->
<{include file="public/footer.html"}> 